package com.wanbatv.wangwangba.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import android.os.Handler;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;

import com.wanbatv.wangwangba.R;
import com.wanbatv.wangwangba.view.MainView;
import com.wanbatv.wangwangba.view.WelcomeView;

public class WelcomeActivity extends Activity implements WelcomeView{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

        new Handler().postDelayed(new Runnable() {
            public void run() {
                WelcomeActivity.this.finish();
                toNextActivity(null);
                finish();
            }
        }, 3000);



    }


    @Override
    public void toNextActivity(String test) {
        Intent it=new Intent();
        it.setClass(this,MainActivity.class);
        startActivity(it);
    }

    @Override
    public Context getContextFromAct() {
        return this;
    }
}
